/*
gobanjs - html5 SGF viewer for the Game of Go 

Copyright (C) 2013  Daniel Cioata
Visit http://www.govortex.ro/ for documentation, updates and examples.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/    

"use strict";
var SGFProp=
{    
    /* game info*/
    ID_SZ:"SZ", ID_PL:"PL",ID_PW:"PW",ID_WR:"WR",
    ID_PB:"PB",ID_BR:"BR",ID_EV:"EV",ID_DT:"DT",
    ID_KM:"KM",ID_RE:"RE",
    /*Node properties */
    ID_B:"B", ID_W:"W",ID_C:"C", ID_AB:"AB",
    ID_AW:"AW",ID_LB:"LB", ID_TR:"TR",ID_SQ:"SQ",    
};

function Prop()
{
    this.id="";
    this.x=0;
    this.y=0;
    this.label=null;
};

function Stone()
{    
    this.x=0;
    this.y=0;
    this.color="";
    this.visited=false;  
    this.index=0;  
};

function NodeInfo()
{    
    this.stone=null;
    this.AW=[];
    this.AB=[];
    this.C=null; 
    this.prop=null;    
    this.markup=null;
    this.captured=null;    
};

function Node()
{
    this.info=null;
    this.next=null
    this.prev=null;
    this.children=null;
    this.parent=null;    
};

function GameTree()
{
    this.root=null;
    this.current=null;
    this.bounds={left:20,top:20,right:0,bottom:0}
    this.gameinfo={boardsize:19,nexttoplay:null};
    this.lstack=new Array(); 
}


